﻿using PSE.Framework.Communication.Configuration.Adapters.File.FlatFile;
using PSE.Framework.Communication.Configuration.Adapters.File;
using System.Configuration;
namespace PSE.Framework.Communication.Configuration.File.FlatFile
{
    public class FlatFileOutputConfiguration : FileOutputAdapterConfiguration
    {

        [ConfigurationProperty("actions",IsRequired=true)]
        public new FlatFileOutputAdapterActionConfigurationCollection Actions
        {
            get
            {
                return (FlatFileOutputAdapterActionConfigurationCollection)base["actions"];
            }
        }

        [ConfigurationProperty("footer", IsRequired = false)]
        public string Footer
        {
            get
            {
                return (string)base["footer"]; ;
            }
        }

        [ConfigurationProperty("header", IsRequired = false)]
        public string Header
        {
            get
            {
                return (string)base["header"];
            }
        }

        [ConfigurationProperty("encoding", IsRequired = false, DefaultValue = "UTF-8")]
        public string Encoding
        {
            get
            {
                return (string)base["encoding"];
            }
        }
    }

}